<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>应用删除</title>
<script type="text/javascript">
function refreshRandCode() {
	$('#randCodeImg').hide().attr('src','/jcaptcha?' + Math.floor(Math.random() * 100)).fadeIn();
}

$(document).ready(function(){
	$("#appDelForm").validate({
		errorElement:"span",
		rules : {
			randCode:{
				required:true,
				remote: {
			        url: "/member/app/checkRandCode",
			        type: "get",
			        cache: false,
			        data: {
			        	randCode:function() {
			            	return $("#randCode").val();
			          	}
			        }
	      		}
			}
		},
		messages : {
			randCode:{
				required:"请输入验证码",
				remote:"验证码不正确"
			}
		},
		errorPlacement : function(error, element) {
			error.appendTo($("#cc"));
		}
	});
});
</script>
</head>
<body>
<div style='display:block'>
  <div id='pop_del' class="popbox1">
   	<form action="/member/app/appDel" name="appDelForm" id="appDelForm" method="post">
	    <input type="hidden" name="appId" id="appId" value="aaf98f894cfa16bc014d036b2e160752"/>
	    <div class="pop_con_div">
	      <p>删除应用：将会使该操作即时生效，除非您非常清楚该操作带来的后续影响</p>
	      <div class="check_info">
	      	<input type="text" class="txt1" name="randCode" id="randCode"/><img src="/jcaptcha" id="randCodeImg" name="randCodeImg" onclick="refreshRandCode();"/><a id="cc" href="javascript:void(0);" onclick="refreshRandCode();">看不清换一张？</a><span>请输入验证码</span>
	      </div>
	    </div>
	    <div class="btns">
	      <input type="submit" value="确 定" class="btn_sure c2"/>
	      <input type="button" value="取 消" class="btn_reset c5" onclick="closeMe();"/>
	    </div>
    </form>
  </div>
</div>
</body>
</html>